	<include file="__VIEW__/Public/userinfoHead.html" />
	<link rel="stylesheet" href="__VIEW__/css/userinfo.css" />
	<script type="text/javascript">
	$(function(){
		$('.name').live('mouseenter',function(){
			$(this).find('.addresss').show();
		});
		$('.name').live('mouseleave',function(){
			$(this).find('.addresss').hide();
		})
	})
	var cancelOrder = "{|U:'UserInfo/cancelOrder'}";
	var delOrder = "{|U:'UserInfo/delOrder'}";
	var ajaxStatusOrder = "{|U:'UserInfo/ajaxStatusOrder'}";
	var uid = "{$hd.session.uid}";
	var loading = "__STATIC__/Img/loading.gif";
	</script>
	<script type="text/javascript" src="__VIEW__/js/cancelOrder.js"></script>
	
		<!--个人中心主体-->
		<div id="content">
			<!--面包屑-->
			<div class="location">
				您当前的位置：
				<a href="{|U:'Index/Index'}">凡客首页</a>
				> 
				<a href="{|U:'UserInfo/Index'}">我的凡客</a>
				> 
				<a href="{|U:'UserInfo/orderList'}">我的订单</a>
			</div>
			<!--面包屑-->
			<div class="main">
				<!--个人中心左边-->
				<include file="__VIEW__/Public/userinfo_left.html" />
				<!--个人中心中心右边-->
				<div class="right">
					<h3 class="title">
						<span>我的订单</span>
					</h3>
					<!--订单列表-->
					<div id="orderOfList">
						<ul>
							<li class="active allOrder ajaxOrder">全部订单</li>
							<li class="underway ajaxOrder">进行中</li>
							<li class="isdone ajaxOrder">已完成</li>
							<li class="iscancel ajaxOrder">已取消</li>
						</ul>
					</div>
					<!--订单每行主体内容-->
					<if value="!$userOrder">
						<div class="orderofRow">目前没有订单</div>
						<else/>
					
					<foreach from="$userOrder" key="$ok" value="$ov">
					<div class="orderofRow">
						<!--定单头-->
						<div class="rowTitle">
							订单总金额<strong style="margin-left:10px;">￥{$ov.count_price}</strong>
							<p>
								{$ov.order_time|date:'Y-m-d H:i:s',@@}
							</p>
						</div>
						<!--定单主体-->
						<div class="orderContent">
							<!--订单号-->
							<div class="orderNum">
								<a href="{|U:'getOrderDetails',array('sn'=>$ov['order_sn'])}" class="num" title="{$ov.order_sn}">{$ov.order_sn}</a>
								<ul> 
									<foreach from="$ov.goods" key="$ik" value="$iv">
									<li><a href="{|U:'Details/index',array('gid'=>$iv['gid'])}" title="{$iv.goods_name}"  class="dressImg" width="50" height="50" ><img src="__ROOT__/{$iv.goods_listimg}"  /></a></li>
									</foreach>
								</ul>
							</div>
							<!--付款-->
							<div class="orderPay">
								<ul>
									<li>应付： <span style="color:#9F0424">￥{$ov.count_price}</span></li>
									<li class="paystatus">
										<if value="$ov['order_status']=='未付款'">
											<a href="{|U:'Cart/pay',array('sn'=>$ov['order_sn'])}" class="nowpay">现在支付</a>
										<elseif value="$ov['order_status']=='取消订单'" />
											<span>取消订单</span>
										<elseif value="$ov['order_status']=='交易完成'" />
											<span>交易完成</span>
										<elseif value="$ov['order_status']=='已发货'" />
											<span>已发货</span>	
										<elseif value="$ov['order_status']=='已付款'" />
											<span>已付款</span>
										</if>
									</li>
									<li class="name">
										{$ov.take_man} <span class="downArrow"></span>
										<div class="addresss">
											<span class="leftArrow"></span>
											{$ov.take_addr}
										</div>
									</li>
								</ul>
							</div>
							<!--定单状态-->
							<div class="orderStatus">
								<ul>
									<li class="status">{$ov.order_status}</li>
								</ul>
							</div>
							<!--定单按钮-->
							<div class="orderBtn">
								<ul>
									<if value="$ov['order_status']=='取消订单'">
										<li><a href="javascript:;" oid="{$ov.oid}" class="hd-btn hd-btn-danger hd-btn-sm delorder">删除订单</a></li>
										<span>订单已取消</span>
										<else/>
										<if value="$ov['order_status']=='已发货' ">
											<li><a href="{|U:'Cart/issure',array('oid'=>$ov['oid'])}" oid="{$ov.oid}" class="hd-btn-sm hd-btn-success" >确认收货</a></li>
										</if>
										<if value="$ov['order_status']=='交易完成' ">
											<li><a href="{|U:'Details/index',array('gid'=>$ov['goods_gid'])}" oid="{$ov.oid}" class="hd-btn-sm hd-btn-success" >去评价</a></li>
										</if>
										
										<if value="$ov['order_status']=='未付款'">
											<li><a href="javascript:;" oid="{$ov.oid}" class="cancelOrder hd-btn-sm hd-btn-danger" >取消订单</a></li>
										</if>
									</if>
									
								</ul>
							</div>
							<!--订单号结束-->
						</div>
					</div>
					</foreach>
					</if>
					<!--订单分页-->
					<!--<div class="orderPage">
						<p><span>1</span>/<span>4</span></p> 
						<a href="" class="prevPage"></a>
						<a href="" class="nextPage"></a>
					</div>-->
				</div>
				
			</div>
		</div>
		
		<!--个人中心主体结束-->
		
		
		<!-- 页脚开始 -->
			<include file="__VIEW__/Public/userinfo_foot.html" />
		<!-- 页脚结束 -->
</body>
</html>
